//-------------------------------------------------------------------
//	Copyright (c) 2010-2012  Zhirnov Andrey
//	This file is part of the "UXGEN" project.
//	See copyright notice in "Engine.h".
//-------------------------------------------------------------------

#ifndef _UX_IMAGE_SAVER_H
#define _UX_IMAGE_SAVER_H

#include "LoaderHeaders.h"

namespace Engine
{
namespace Loaders
{

	bool SaveImage1D(IFilePtr pFile, const TImage1D &sImage, e_image::type eType);				// T1D, TBO
	bool SaveImage2D(IFilePtr pFile, const TImage2D &sImage, e_image::type eType);				// T2D, S2D
	bool SaveImage3D(IFilePtr pFile, const TImage3D &sImage, e_image::type eType);				// VOL, T3D
	bool SaveImageArray2D(IFilePtr pFile, const array<TImage2D> &aImages, e_image::type eType);	// CBM, T2A, CMA

	bool SaveSprite2D(IFilePtr pFile, const TSprite2D &sSprite);

	bool SaveBitmap(IFilePtr pFile, const uvec2 &sSize, const binary_buffer_t &aData);

//-------------------------------------------------------------------

}	// Loaders
}	// Engine

#endif	// _UX_IMAGE_SAVER_H